@import "../common/forms.less";
@import "base.less";

/* Slider */

.km-material .k-slider .k-draghandle,
.km-material .k-slider .k-draghandle:hover
{
    border: 0;
    border-radius: 5em;
}

.km-material .k-slider-track
{
    margin: -.5em .5em 0 0;
    .box-sizing(content-box);
    border-radius: .5em;
    background-color: @material-disabled-color;
}

.km-material .k-slider-selection
{
    margin-left: 0;
}

/* Forms */

.km-material .km-list input[type=password],
.km-material .km-list input[type=search],
.km-material .km-list input[type=number],
.km-material .km-list input[type=tel],
.km-material .km-list input[type=url],
.km-material .km-list input[type=email],
.km-material .km-list input[type=month],
.km-material .km-list input[type=color],
.km-material .km-list input[type=week],
.km-material .km-list input[type=date],
.km-material .km-list input[type=time],
.km-material .km-list input[type=datetime],
.km-material .km-list input[type=datetime-local],
.km-material .km-list input[type=text]:not(.k-input),
.km-material .km-list select:not([multiple]),
.km-material .km-list .k-dropdown-wrap,
.km-material .km-list textarea
{
    .appearance(none);
    font-size: 1.1rem;
    min-width: 6em;
    padding: .4em;
    outline: none;
    background: transparent;
}

.km-material .km-list .k-dropdown-wrap
{
    padding: .2em;
}

.km-material .km-list input[type=color],
.km-material .km-list input[type=week],
.km-material .km-list input[type=date],
.km-material .km-list input[type=time],
.km-material .km-list input[type=month],
.km-material .km-list input[type=datetime],
.km-material .km-list input[type=datetime-local],
.km-material .km-list .k-dropdown
{
    text-align: left;
}

.km-material .km-list .k-dropdown .k-dropdown-wrap
{
    display: block;
    border-radius: 0;
    background: transparent;
    .box-shadow(none);
}

/* Checkboxes and Radios */

.km-material .km-listview-label input[type=checkbox]
{
    margin-top: -.7em;
}

.km-material .km-listview-label input[type=radio],
.km-material .km-listview-label input[type=checkbox]
{
    border-width: 2px;
    border-style: solid;
    width: 1.2em;
    height: 1.2em;
    border-radius: @material-border-radius;
}

.km-material .km-listview-label input[type=radio]
{
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
}

.km-material .km-listview-label input[type=radio]:checked:after,
.km-material .km-listview-label input[type=checkbox]:after
{
    content: "\a0";
    display: block;
    width: 90%;
    height: 76%;
    .transform(scale(.9,1));
    .transform-origin(10% 50%);
}

.km-material .km-listview-label input[type=radio]:checked:after
{
    margin: 11% 0 0 11%;
    height: 85%;
    border-radius: 50%;
}

.km-material .km-listview-label input[type=checkbox]:checked:after
{
    font-size: 1em;
}

.km-material .km-list .km-icon.km-check {
    font-size: 1.071em;
}


.km-material input[type=password],
.km-material input[type=search],
.km-material input[type=number],
.km-material input[type=tel],
.km-material input[type=url],
.km-material input[type=email],
.km-material input[type=month],
.km-material input[type=color],
.km-material input[type=week],
.km-material input[type=date],
.km-material input[type=time],
.km-material input[type=datetime],
.km-material input[type=datetime-local],
.km-material input[type=text]:not(.k-input),
.km-material select:not([multiple]),
.km-material .k-dropdown,
.km-material textarea
{
    padding: .4em;
    border-radius: 0;
    .box-sizing(border-box);
}

.km-material .km-list input[type=password],
.km-material .km-list input[type=search],
.km-material .km-list input[type=number],
.km-material .km-list input[type=tel],
.km-material .km-list input[type=url],
.km-material .km-list input[type=email],
.km-material .km-list input[type=month],
.km-material .km-list input[type=color],
.km-material .km-list input[type=week],
.km-material .km-list input[type=date],
.km-material .km-list input[type=time],
.km-material .km-list input[type=datetime],
.km-material .km-list input[type=datetime-local],
.km-material .km-list input[type=text]:not(.k-input),
.km-material .km-list select:not([multiple]),
.km-material .km-list .k-dropdown
{
    margin-top: -1.05em;
    width: 45%;
    right: 1em;
    font-size: 1em;
}

.km-material .km-list .k-dropdown
{
    margin-top: -1.5em;
    font-weight: normal;
    padding: 0;
}

.km-native-scrolling .km-material .km-list input[type=password],
.km-native-scrolling .km-material .km-list input[type=search],
.km-native-scrolling .km-material .km-list input[type=number],
.km-native-scrolling .km-material .km-list input[type=tel],
.km-native-scrolling .km-material .km-list input[type=url],
.km-native-scrolling .km-material .km-list input[type=email],
.km-native-scrolling .km-material .km-list input[type=month],
.km-native-scrolling .km-material .km-list input[type=color],
.km-native-scrolling .km-material .km-list input[type=week],
.km-native-scrolling .km-material .km-list input[type=date],
.km-native-scrolling .km-material .km-list input[type=time],
.km-native-scrolling .km-material .km-list input[type=datetime],
.km-native-scrolling .km-material .km-list input[type=datetime-local],
.km-native-scrolling .km-material .km-list input[type=text]:not(.k-input),
.km-native-scrolling .km-material .km-list select:not([multiple]),
.km-native-scrolling .km-material .km-list textarea
{
    position: static;
    float: right;
    margin-top: 0;
    margin-bottom: -.2em;
}

.km-material input[type=file]
{
    padding: .25em;
    outline: none;
}

.km-material textarea {
    outline: none;
    border-width: 0 0 1px;
    margin-right: 0;
}

.km-material .k-dropdown .k-input
{
    border-radius: 0;
}

.km-material input[type=password],
.km-material input[type=search],
.km-material input[type=number],
.km-material input[type=tel],
.km-material input[type=url],
.km-material input[type=email],
.km-material input[type=text]:not(.k-input)
{
    outline-width: 2px;
    outline-style: solid;
    outline-offset: -5px;
    border-width: 0 0 1px;
    border-style: solid;
}

.km-material input[type=password]:focus,
.km-material input[type=search]:focus,
.km-material input[type=number]:focus,
.km-material input[type=tel]:focus,
.km-material input[type=url]:focus,
.km-material input[type=email]:focus,
.km-material input[type=text]:not(.k-input):focus,
.km-material textarea:focus
{
    outline-offset: -6px;
}

.km-material input[type=month],
.km-material input[type=color],
.km-material input[type=week],
.km-material input[type=date],
.km-material input[type=time],
.km-material input[type=datetime],
.km-material input[type=datetime-local],
.km-material select:not([multiple]),
.km-material .k-dropdown .k-dropdown-wrap
{
    border-width: 0 0 1px;
    border-style: solid;
    margin-bottom: 1px;
    background-clip: border-box;
}

.km-material input[type=password]:focus,
.km-material input[type=search]:focus,
.km-material input[type=number]:focus,
.km-material input[type=tel]:focus,
.km-material input[type=url]:focus,
.km-material input[type=email]:focus,
.km-material input[type=text]:not(.k-input):focus
{
    border-width: 0 0 2px;
}




.km-material .k-slider-horizontal
{
    margin-top: 0;
    height: .1em;
}

.km-material .k-slider .k-draghandle
{
    width: .857em;
    height: .857em;
    .box-shadow(none);
    border-radius: 5em;
    border: 0;
}

.km-material .k-slider-horizontal .k-draghandle
{
    top: 2px;
}

.km-material .k-slider-vertical .k-draghandle
{
    left: -.5em;
}

.km-material .k-slider-horizontal .k-slider-selection
{
    margin-top: 0;
}

.km-material .k-slider-vertical .k-slider-selection
{
    margin-left: -.1em;
    width: .2em;
}

.km-material .k-slider-horizontal .k-slider-track
{
    height: .143em;
}

.km-material .k-slider-vertical .k-slider-track
{
    width: .143em;
}

.km-material .k-slider-selection
{
    margin-left: 0;
}

.km-material .k-slider .k-draghandle,
.km-material .k-slider .k-draghandle:hover
{
    margin-top: -.5em;
    padding: 0;
    background-clip: content-box;
    -webkit-background-clip: content-box;
}

.km-material .k-slider .k-draghandle:before
{
    content: "\a0";
    display: block;
    margin-top: -.5em;
    margin-left: -.5em;
    width: 100%;
    height: 100%;
    opacity: .3;
    border-radius: 5em;
    padding: .5em;
    margin-bottom: .5em;
}

.km-material .k-slider .k-draghandle:active:before
{
    opacity: .4;
}

.km-material .km-popup .k-popup .k-item.k-state-hover
{
    cursor: pointer;
}
